
import {createRouter, createWebHashHistory} from 'vue-router'
import type { RouteRecordRaw } from 'vue-router';

const routes: Array<RouteRecordRaw> = [
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/login/loginIndex.vue'),
     meta:{
          title:'登录',
      }
  },
  {
    path: '/:pathMatch(.*)*',
    name: '404',
    component: () => import('@/views/error/notFout.vue'),
     meta: {
        title: '404页面', hidden:false
    },
  }
]
const router = createRouter({
    history: createWebHashHistory(),
    routes,
});
 export default router;